
<div style="background-color: white">
	<form action="index.php/TrailProcess/traillist" method="post" id="trail_form">
		<fieldset>
			<legend></legend>
<!--			<select name="search_key" >-->
<!--				<option value="">全部</option>-->
<!--				<option value="AH">案件号</option>-->
<!--				<option value="YG">原告</option>-->
<!--				<option value="BG">被告</option>-->
<!--				<option value="SPZ">审判长</option>-->
<!--			</select>-->
			<label>当事人</label>
			<input type="text" id="search_val" placeholder="" value="<?php echo $searchsel['DSR']?>"/>
			<input type="text" id="DSR"  style="display: none" name="DSR" placeholder="" value="<?php echo $searchsel['DSR']?>">
			<input type="button" id="search_btn" value="搜索"/>
		</fieldset>
	</form>
<!--	<form>-->
<!--		<div class="row">-->
<!--			<div class="col-xs-4">-->
<!--				<select class="form-control">-->
<!--					<option>1</option>-->
<!--					<option>1</option>-->
<!--					<option>1</option>-->
<!--				</select>-->
<!--			</div><!-- /input-group -->
<!--			<div class="col-xs-7">-->
<!--				<input type="text" class="form-control" aria-label="...">-->
<!--			</div>-->
<!--			<div class="col-xs-1">-->
<!--				<input type="text" class="form-control" aria-label="...">-->
<!--			</div>-->
<!--		</div>-->
<!--	</form>-->
	<?php
	if (count($trails->informationmodels)==0){ ?>
	<h3>暂时没有查询到相关信息！</h3>
	<?php }else{ ?>
	<ul class="list-group">
		<?php foreach ($trails->informationmodels as $item):  ?>
			<li class="list-group-item court_li">
				<div class="row" style="margin-bottom: 10px;">
					<div class="row" >
						<div class="col-xs-3">
							<span>案件号</span>
						</div>
						<div class="col-xs-9">
							<span><?php echo $item->AH ?></span>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-3">
							<span>法院</span>
						</div>
						<div class="col-xs-9">
							<span><?php echo $item->CourtName ?></span>
						</div>
					</div>

					<div class="row">
						<div class="col-xs-3">
							<span>立案时间</span>
						</div>
						<div class="col-xs-9">
							<span><?php echo $item->LARQ ?></span>
						</div>
					</div>

					<div class="row">
						<div class="col-xs-3">
							<span>案件状态</span>
						</div>
						<div class="col-xs-9">
							<span><?php echo $item->AJZT ?></span>
						</div>
					</div>
					<div style="display: none" class="trailId"><?php echo $item->Id ?></div>
					<div class="row">
						<div class="col-xs-3">
							<span>当事人</span>
						</div>
						<div class="col-xs-9">
							<div class="col-xs-11" style="padding-left: 0px">
								<?php
									foreach($item->DSRModels as $dsr):
										echo  $dsr->SSDW .':'.$dsr->MC.'</br>';
									endforeach;
								?>
							</div>
							<div style="text-align:center;">
								<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
							</div>
						</div>
					</div>
				</div>

			</li>
		<?php endforeach; ?>
	</ul>
	<?php } ?>
</div>
<script>
	$('#search_btn').on('click',function(){
		$("#DSR").val($("#search_val").val());
		$('#trail_form').submit();
	});
</script>
